package thread.bank;

public class Account {
	private int accountNumber;
	private int balance;

	public Account (int accountNumber, int balance){
		this.accountNumber=accountNumber;
		this.balance=balance;
		
	}
	public int getBalance(){
		return this.balance;
	}
	public int getAccountNumber(){
		return this.accountNumber;
	}
	public void setBalance(int balance){
		this.balance=balance;
	}
	public String toString(){
		return "A//C No. "+this.accountNumber+" : $"+this.balance;
	}
}
